using UnityEngine;
using System.Collections;

public class Bomber : MonoBehaviour {
	
	public Transform bomb;
	int rate;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		
		if(Difficulty.difficulty == 1) rate = 50;
		else rate = 100;
		
		int fire = Random.Range(0,1000);
	
		if(fire <= rate)
		{
			Transform newBomb = Instantiate(bomb, transform.position, transform.rotation) as Transform;
		}
	}
}
